#!/bin/sh
## nettoyage
/bin/rm -rf ../libs/lib_ExpoRNS

## creation de la librairie de travail
vlib ../libs/lib_ExpoRNS

## compilation
vcom -work ../libs/lib_ExpoRNS trc_Unit.vhdl  | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS k_Unit.vhdl  | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS exponentiation_unit.vhdl| grep --color -E "^\*\*.*|$" 
vcom -work ../libs/lib_ExpoRNS exponentiation_fsm.vhdl  | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS exponentiation_Calc.vhdl  | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS mult_montg_unit.vhdl  | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS RNS_dec_unit.vhdl | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS master_unit.vhdl | grep --color -E "^\*\*.*|$"

vcom -work ../libs/lib_ExpoRNS mult_std_unit.vhdl | grep --color -E "^\*\*.*|$"
vcom -work ../libs/lib_ExpoRNS modulo_Unit.vhdl | grep --color -E "^\*\*.*|$"

